/*
 * Copyright (c) 2025, 廖树财, <study_2030@163.com>
 *
 * PHS2.0-OTA is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2     
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
#pragma once

#include "iota.h"
// #include "iotaimp.h"
#include "mqttClient.h"

extern char *FILE_SERVER_IP;
extern int FILE_SERVER_PORT;
extern char *FILE_LOG;
extern char *UPDATE_FILE_PATH;
extern char *APP_FILE_PATH;
extern char *LOGIN_ADDR;
extern int LOGIN_PORT;

void external_proc();

void internal_proc();

int try_get_autoconf_v3();

char *get_nodeId();